package icu.nil.demo.shell.config

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Configuration


/**
 * Create by xiangliyou on 2020/3/11 2:31 上午.
 * email: xiangliyou@aliyun.com
 * Des: json 配置
 */
@Configuration
class JsonConfig {

    @Autowired
    fun kotlinMapper(mapper: ObjectMapper) {
        mapper.registerModule(KotlinModule())
    }
}